package au.com.iglootech.winerymap.spring;

import javax.servlet.ServletContext;

import org.jboss.resteasy.plugins.spring.SpringContextLoader;
import org.springframework.web.context.ConfigurableWebApplicationContext;

/**
 * 
 * @author nicholas zhu
 * 
 */
public class IGTSpringContextLoader extends SpringContextLoader {
	private final IGTSpringContextLoaderSupport springContextLoaderSupport = new IGTSpringContextLoaderSupport();

	/**
	 * @param servletContext
	 *            servletContext
	 * @param configurableWebApplicationContext
	 *            configurableWebApplicationContext
	 * 
	 */
	@Override
	protected void customizeContext(
			final ServletContext servletContext,
			final ConfigurableWebApplicationContext configurableWebApplicationContext) {
		super.customizeContext(servletContext,
				configurableWebApplicationContext);
		this.springContextLoaderSupport.customizeContext(servletContext,
				configurableWebApplicationContext);
	}
}
